<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateAuditoriaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateAuditoriaLabel_id}" for="id" />
                    <h:inputText id="id" value="#{auditoriaController.selected.id}" title="#{bundle.CreateAuditoriaTitle_id}" required="true" requiredMessage="#{bundle.CreateAuditoriaRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.CreateAuditoriaLabel_tabla}" for="tabla" />
                    <h:inputText id="tabla" value="#{auditoriaController.selected.tabla}" title="#{bundle.CreateAuditoriaTitle_tabla}" required="true" requiredMessage="#{bundle.CreateAuditoriaRequiredMessage_tabla}"/>
                    <h:outputLabel value="#{bundle.CreateAuditoriaLabel_fecha}" for="fecha" />
                    <h:inputText id="fecha" value="#{auditoriaController.selected.fecha}" title="#{bundle.CreateAuditoriaTitle_fecha}" required="true" requiredMessage="#{bundle.CreateAuditoriaRequiredMessage_fecha}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateAuditoriaLabel_valor}" for="valor" />
                    <h:inputText id="valor" value="#{auditoriaController.selected.valor}" title="#{bundle.CreateAuditoriaTitle_valor}" required="true" requiredMessage="#{bundle.CreateAuditoriaRequiredMessage_valor}"/>
                    <h:outputLabel value="#{bundle.CreateAuditoriaLabel_accion}" for="accion" />
                    <h:inputText id="accion" value="#{auditoriaController.selected.accion}" title="#{bundle.CreateAuditoriaTitle_accion}" required="true" requiredMessage="#{bundle.CreateAuditoriaRequiredMessage_accion}"/>
                    <h:outputLabel value="#{bundle.CreateAuditoriaLabel_usuarioId}" for="usuarioId" />
                    <h:selectOneMenu id="usuarioId" value="#{auditoriaController.selected.usuarioId}" title="#{bundle.CreateAuditoriaTitle_usuarioId}" required="true" requiredMessage="#{bundle.CreateAuditoriaRequiredMessage_usuarioId}">
                        <f:selectItems value="#{usuarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{auditoriaController.create}" value="#{bundle.CreateAuditoriaSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{auditoriaController.prepareList}" value="#{bundle.CreateAuditoriaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateAuditoriaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
